<div class="user-r-title clearfix">
    <div class="common-title f-l">
        <a href="javascript:void(0)" class="field">游戏收益分析</a>
    </div>
</div>
<div class="user-r-content clearfix j-ajax-page">
    <div class="search clearfix" ms-important="vm-search">
        <div class="search-list">
            <span>时间</span>
            <input type="text" ms-duplex="@search_data.begin_time" id="begin_time" placeholder="{$data.begin_time}"> <span>-</span> <input type="text" ms-duplex="@search_data.end_time" id="end_time" placeholder="{$data.end_time}">
        </div>
        <div class="search-list">
            <span>推广会员名称</span>
            <input type="text" ms-duplex="@search_data.nick_name" placeholder="">
        </div>
        <div class="search-list">
            <span>上线推广商名称</span>
            <input type="text" ms-duplex="@search_data.promoter_name" placeholder="">
        </div>
        <a href="javascript:void(0)" class="btn btn-primary btn-circle" ms-click="search">搜索</a>
    </div>
    <div class="ajax-block">
        <table class="uc-table">
            <thead>
                <tr>
                    <th>推广会员名称</th>
                    <th>上级推广商名称</th>
                    <th>下注总额</th>
                    <th>总流水</th>
                    <th>推广会员收支</th>
                    <th>推广中心流水收入</th>
                    <th>平台流水收入</th>
                    <th>推广商的收支</th>
                    <th>操作</th>
                </tr>
            </thead>
            <tbody>
                {foreach from="$data.gift_list" item="log" }
                <tr>
                    <td>{$log.nick_name}</td>
                    <td>{$log.name}</td>
                    <td>{$log.sum_bet}</td>
                    <td>{$log.sum_win}</td>
                    <td>{$log.sum_win1}</td>
                    <td>{$log.promoter_gain}</td>
                    <td>{$log.platform_gain}</td>
                    <td>{$log.gain}</td>
                    <td class="content-font table-link"><a class="table-link" href='{url r="user#coins_detail" p="id=$log.user_id"}'>查看明细</a></td>
                </tr>
                {foreachelse}
                <tr>
                    <td colspan="9">
                        <span>暂无数据</span>
                    </td>
                </tr>
                {/foreach}
                {if $data.gift_list}
                <tr class="form-body form-total">
                    <td class="content-font">合计</td>
                    <td class="content-font"></td>
                    <td class="content-font">{$data.sum.sum_bet}</td>
                    <td class="content-font">{$data.sum.sum_win}</td>
                    <td class="content-font">{$data.sum.sum_win1}</td>
                    <td class="content-font">{$data.sum.promoter_gain}</td>
                    <td class="content-font">{$data.sum.platform_gain}</td>
                    <td class="content-font">{$data.sum.gain}</td>
                    <td class="content-font"></td>
                </tr>
                {/if}
            </tbody>
        </table>
        <div class="m-page clearfix">
            <div class="m-page-con">
                {$data.page}
            </div>
        </div>
    </div>
</div>
